package com.shutong.edu.invoke.retry.provider;

/**
 *
 * @ClassName: FallbackProvider.java
 * @author: Naughty Guo
 * @date: Jun 2, 2016
 */
public interface FallbackProvider {

    /**
     * do fallback logic when retry max times still error.
     *
     * @param arguments
     * @param exception
     * @param result
     * @return
     * @author Naughty Guo Jun 2, 2016
     */
    Object fallback(Object[] arguments, Throwable exception, Object result);
}
